﻿<phone:PhoneApplicationPage 
    x:Class="VokabeltrainerPhone.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" xmlns:my="clr-namespace:Microsoft.Live.Controls;assembly=Microsoft.Live.Controls" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls">

    <!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Visibility="Visible" Height="1200" Width="480">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel enthält den Namen der Anwendung und den Seitentitel-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28" Visibility="Visible">
            <TextBlock x:Name="ApplicationTitle" Text="Vokabeltrainer" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="SkyDrive einloggen" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="48" Visibility="Collapsed" />
            <toolkit:DatePicker HorizontalAlignment="Left" Margin="62,57,0,0" Name="dateTimePicker1" VerticalAlignment="Top" Height="610" Width="297" Visibility="Collapsed" />
        </StackPanel>

        <!--ContentPanel - zusätzliche Inhalte hier platzieren-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Visibility="Collapsed" HorizontalAlignment="Left" Width="480">
            <TextBlock Height="136" HorizontalAlignment="Center" Margin="0,6,0,0" Name="textBlock3" Text="" VerticalAlignment="Top" Width="480" />
            <TextBlock Height="109" HorizontalAlignment="Center" Margin="0,226,0,0" Name="fehlerText" Text="" VerticalAlignment="Top" Width="480" />
            <my:SignInButton Content="Button" ClientId="00000000480BF427" RedirectUri="http://vokabeltrainer.codeplex.com/" Scopes="wl.signin wl.basic wl.skydrive wl.skydrive_update" Height="72" HorizontalAlignment="Left" Margin="0,148,0,0" Name="signInButton1" VerticalAlignment="Top" Width="215" Branding="Skydrive" SessionChanged="signInButton1_SessionChanged" />
            <Button Content="Vokabeln Eingeben" Height="72" HorizontalAlignment="Left" Margin="221,148,0,0" Name="button10" VerticalAlignment="Top" Width="247" FontSize="22" Click="button10_Click" />
            <Canvas Height="100" HorizontalAlignment="Left" Margin="330,571,0,0" Name="canvas1" VerticalAlignment="Top" Width="200" />
        </Grid>
        
        <Grid Height="730" HorizontalAlignment="Left" Margin="0,38,0,0" Name="abfrageGrit" VerticalAlignment="Top" Width="480" Grid.RowSpan="2" Visibility="Collapsed">
            <Image Height="300" HorizontalAlignment="Left" Margin="0,6,0,0" Name="pictureBox1" Stretch="Fill" VerticalAlignment="Top" Width="400" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,312,0,0" Name="label6" Text="Anweisung" VerticalAlignment="Top" />
            <TextBlock Height="30" Margin="6,348,6,0" Name="textBox2" Text="" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,384,0,0" Name="label1" Text="Frage" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,420,0,0" Name="frage" Text="" VerticalAlignment="Top" Width="468" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,456,0,0" Name="label2" Text="Antwort" VerticalAlignment="Top" />
            <TextBox Height="72" Margin="-4,478,0,0" Name="antwort" Text="" VerticalAlignment="Top" Visibility="Collapsed" KeyDown="antwort_KeyDown" />
            <Button Content="Antwortmöglichkeiten" Height="72" HorizontalAlignment="Left" Margin="-4,541,0,0" Name="button2" VerticalAlignment="Top" Width="484" FontSize="20" FontFamily="Segoe WP" Click="AntwortMoeglichkeiten_Click" Visibility="Collapsed" />
            <Button Content="Prüfen" Height="72" HorizontalAlignment="Left" Margin="320,652,0,0" Name="weiter" VerticalAlignment="Top" Width="160" Click="weiter_Click" />
            <Button Content="Play" Height="72" HorizontalAlignment="Left" Margin="-4,652,0,0" Name="button3" VerticalAlignment="Top" Width="97" Click="SoundAbspielen_Click" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,616,0,0" Name="textBoxZusatz" Text="" VerticalAlignment="Top" Width="462" />
            <Button Content="Hinzufügen" Height="72" HorizontalAlignment="Left" Margin="99,652,0,0" Name="button15" VerticalAlignment="Top" Width="215" Click="button10_Click" />
            <ListBox Height="118" HorizontalAlignment="Left" Margin="6,492,0,0" Name="antwortmoeglichkeiten" VerticalAlignment="Top" Width="468" />
        </Grid>
        <Grid Height="730" HorizontalAlignment="Left" Margin="0,38,0,0" Name="durchblaetternGrit" VerticalAlignment="Top" Width="480" Grid.RowSpan="2" Visibility="Collapsed">
            <Image Height="300" HorizontalAlignment="Left" Margin="0,6,0,0" Name="durchblaetternpictureBox1" Stretch="Fill" VerticalAlignment="Top" Width="400" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,312,0,0" Name="durchblaetternlabel6" Text="Anweisung" VerticalAlignment="Top" />
            <TextBlock Height="30" Margin="6,348,6,0" Name="durchblaetterntextBox2" Text="" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,384,0,0" Name="durchblaetternlabel1" Text="Frage" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,420,0,0" Name="durchblaetternfrage" Text="" VerticalAlignment="Top" Width="468" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,456,0,0" Name="durchblaetternlabel2" Text="Antwort" VerticalAlignment="Top" />
            <Button Content="Weiter" Height="72" HorizontalAlignment="Left" Margin="320,652,0,0" Name="durchblaetternweiter" VerticalAlignment="Top" Width="160" Click="durchblaetternweiter_Click" />
            <Button Content="Play" Height="72" HorizontalAlignment="Left" Margin="-4,652,0,0" Name="durchblaetternbutton3" VerticalAlignment="Top" Width="97" Click="SoundAbspielen_Click" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,616,0,0" Name="durchblaetterntextBoxZusatz" Text="" VerticalAlignment="Top" Width="462" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,492,0,0" Name="durchblaetternantwort" Text="" VerticalAlignment="Top" Width="468" />
            <Button Content="Löschen" Height="72" HorizontalAlignment="Left" Margin="126,652,0,0" Name="button4" VerticalAlignment="Top" Width="160" Click="button4_Click" />
        </Grid>
        <Grid Grid.Row="1" Height="285" HorizontalAlignment="Left" Name="ladenGrit" VerticalAlignment="Top" Width="480" Visibility="Collapsed">
            <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,224,0,0" Name="textBlock2" Text="Laden..." VerticalAlignment="Top" />
            <ProgressBar Height="13" HorizontalAlignment="Left" Margin="12,247,0,0" Name="progressBar1" VerticalAlignment="Center" Width="456" Grid.Row="1" HorizontalContentAlignment="Center" IsIndeterminate="True" FlowDirection="LeftToRight" />
            <MediaElement Height="120" HorizontalAlignment="Left" Margin="60,35,0,0" Name="mediaElement1" VerticalAlignment="Top" Width="160" />
        </Grid>
        <Grid Height="718" HorizontalAlignment="Left" Margin="0,50,0,0" Name="vokabelnLadeGrit" VerticalAlignment="Top" Width="480" Grid.RowSpan="2" Visibility="Collapsed">
            <TextBlock Height="218" HorizontalAlignment="Left" Margin="0,6,0,0" Name="textBlock1" Text="" VerticalAlignment="Top" Width="480" />
            <Button Content="Aus Cloud Laden" Height="72" HorizontalAlignment="Left" Margin="0,230,0,0" Name="button5" VerticalAlignment="Top" Width="480" Click="AusCloudLaden_Click" />
            <Button Content="Vom Handy Laden" Height="72" HorizontalAlignment="Left" Margin="0,308,0,0" Name="button6" VerticalAlignment="Top" Width="480" Click="VomHandyLaden_Click" />
        </Grid>
        <Grid Height="712" HorizontalAlignment="Left" Margin="0,56,0,0" Name="vokabelnSpeichernGrit" VerticalAlignment="Top" Width="480" Grid.RowSpan="2" Visibility="Collapsed">
            <TextBlock Height="212" HorizontalAlignment="Left" Margin="0,6,0,0" Name="textBlock16" Text="" VerticalAlignment="Top" Width="480" />
            <my:SignInButton Content="Button" ClientId="00000000480BF427" RedirectUri="http://vokabeltrainer.codeplex.com/" Scopes="wl.signin wl.basic wl.skydrive wl.skydrive_update" Height="72" HorizontalAlignment="Left" Margin="0,224,0,0" Name="signInButton2" VerticalAlignment="Top" Width="202" HorizontalContentAlignment="Center" SessionChanged="signInButton2_SessionChanged" Branding="Skydrive" Visibility="Collapsed" />
            <Button Content="Cloud Speichern" Height="72" HorizontalAlignment="Left" Margin="0,224,0,0" Name="button16" VerticalAlignment="Top" Width="248" Click="InCloudSpeichern_Click" />
            <Button Content="Handy Speichern" Height="72" HorizontalAlignment="Left" Margin="254,224,0,0" Name="button17" VerticalAlignment="Top" Width="226" FontSize="22" Click="AufHandySpeichern_Click" />
        </Grid>
        <Grid Grid.Row="1" Height="696" HorizontalAlignment="Left" Name="musikBilderAusCloudGrit" VerticalAlignment="Top" Width="480" Visibility="Collapsed">
            <TextBlock Height="98" HorizontalAlignment="Left" Name="textBlock6" Text="" VerticalAlignment="Top" Width="480" />
            <ListBox Height="192" HorizontalAlignment="Left" Margin="0,104,0,0" Name="bilderNamenBox1" VerticalAlignment="Top" Width="480" />
            <TextBlock Height="37" HorizontalAlignment="Left" Margin="0,302,0,0" Name="textBlock7" Text="" VerticalAlignment="Top" Width="480" />
            <ListBox Height="180" HorizontalAlignment="Left" Margin="0,345,0,0" Name="musikNamenBox2" VerticalAlignment="Top" Width="480" />
            <Button Content="Aufs Handy Laden" Height="72" HorizontalAlignment="Left" Margin="0,531,0,0" Name="button8" VerticalAlignment="Top" Width="285" Click="MusikBilderAufsHandy_Click" Visibility="Collapsed" />
            <TextBlock Height="81" HorizontalAlignment="Left" Margin="0,609,0,0" Name="musikBilderLadeFehler" Text="" VerticalAlignment="Top" Width="480" />
            <Button Content="Nein Danke" Height="72" HorizontalAlignment="Right" Margin="0,531,0,0" Name="button9" VerticalAlignment="Top" Width="189" Click="eingabeFertig_Click" />
            <my:SignInButton Content="Button" ClientId="00000000480BF427" RedirectUri="http://vokabeltrainer.codeplex.com/" Scopes="wl.signin wl.basic wl.skydrive wl.skydrive_update" Height="72" HorizontalAlignment="Left" Margin="0,531,0,0" Name="signInButton3" VerticalAlignment="Top" Width="212" SessionChanged="signInButton3_SessionChanged" />
        </Grid>
        <Grid Grid.Row="1" Height="70" HorizontalAlignment="Left" Margin="0,245,0,0" Name="speicherProzessGrit" VerticalAlignment="Top" Width="480" Visibility="Collapsed">
            <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,6,0,0" Name="textBlock8" Text="Speichern..." VerticalAlignment="Top" /> 
            <ProgressBar Height="13" HorizontalAlignment="Left" Margin="0,43,0,0" Name="progressBar2" VerticalAlignment="Top" Width="480" HorizontalContentAlignment="Left" IsIndeterminate="True" FlowDirection="LeftToRight" VerticalContentAlignment="Top" Foreground="#FFE2C31B" />
            
        </Grid>
        <Grid Height="718" HorizontalAlignment="Left" Margin="0,50,0,0" Name="startBildGrit" VerticalAlignment="Top" Width="480" Grid.RowSpan="2" Visibility="Collapsed">
            <TextBlock Height="123" HorizontalAlignment="Left" Margin="0,6,0,0" Name="textBlock9" Text="TextBlock" VerticalAlignment="Top" Width="480" />
            <Button Content="Abfragen" Height="72" HorizontalAlignment="Left" Margin="0,135,0,0" Name="button11" VerticalAlignment="Top" Width="226" Click="AbfragenDurchblättern" />
            <Button Content="Hinzufügen" Height="72" HorizontalAlignment="Right" Margin="0,135,6,0" Name="button12" VerticalAlignment="Top" Width="242" Click="button10_Click" />
            <Button Content="Musik und Bilder laden" Height="72" HorizontalAlignment="Left" Margin="0,473,0,0" Name="button7" VerticalAlignment="Top" Width="474" Click="button7_Click" />
            <TextBlock Height="103" HorizontalAlignment="Left" Margin="0,364,0,0" Name="textBlock17" Text="Es sind keine bzw. nicht alle Bilder bzw. Sound" VerticalAlignment="Top" Width="480" />
            <Button Content="In Cloud Speichern" Height="72" HorizontalAlignment="Left" Margin="0,213,0,0" Name="button1" VerticalAlignment="Top" Width="474" Click="InCloudSpeichern_Click" Visibility="Collapsed" />
            <my:SignInButton Content="Button" ClientId="00000000480BF427" RedirectUri="http://vokabeltrainer.codeplex.com/" Scopes="wl.signin wl.basic wl.skydrive wl.skydrive_update" Height="72" HorizontalAlignment="Left" Margin="0,249,0,0" Name="signInButton4" VerticalAlignment="Top" Width="474" SessionChanged="signInButton2_SessionChanged" />
            <TextBlock Height="30" HorizontalAlignment="Center" Margin="79,213,79,0" Name="textBlock4" Text="Anmelden um in Cloud zu Speichern" VerticalAlignment="Top" />
        </Grid>
        
        <controls:Pivot Height="732" HorizontalAlignment="Left" Name="pivot1" Title="Hinzufügen" VerticalAlignment="Top" Width="480" Visibility="Visible" Margin="0,50,0,0" Grid.RowSpan="2">
            <controls:PivotItem Header="Fragen">
                <Grid Grid.Row="1" Height="522" HorizontalAlignment="Left" Margin="0,-30,0,0" Name="grid2" VerticalAlignment="Top" Width="460">
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,0,0,0" Name="textBlock10" Text="Anweisung" VerticalAlignment="Top" />
                    <TextBox Height="72" HorizontalAlignment="Left" Margin="0,20,0,0" Name="textBox1" Text="" VerticalAlignment="Top" Width="460" KeyDown="antwort_KeyDown" />
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,93,0,0" Name="textBlock11" Text="Frage" VerticalAlignment="Top" />
                    <TextBox Height="72" HorizontalAlignment="Left" Margin="0,113,0,0" Name="textBox3" Text="" VerticalAlignment="Top" Width="460" KeyDown="antwort_KeyDown" />
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,185,0,0" Name="textBlock12" Text="Antwort" VerticalAlignment="Top" />
                    <TextBox Height="72" HorizontalAlignment="Left" Margin="0,205,0,0" Name="textBox4" Text="" VerticalAlignment="Top" Width="460" KeyDown="antwort_KeyDown" />
                    <ListBox Height="122" HorizontalAlignment="Left" Margin="9,305,0,0" Name="artDerAntwort" VerticalAlignment="Top" Width="439" Background="#B3FFFFFF" />
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="7,271,0,0" Name="textBlock19" Text="Kategorie" VerticalAlignment="Top" />
                    
                </Grid>
            </controls:PivotItem>
            <controls:PivotItem Header="Zusatz">
                <Grid Grid.Row="1" Height="475" HorizontalAlignment="Left" Margin="0,-30,0,0" Name="grid3" VerticalAlignment="Top" Width="458">
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,0,0,0" Name="textBlock13" Text="Bildname" VerticalAlignment="Top" />
                    <TextBox Height="72" HorizontalAlignment="Left" Margin="0,20,0,0" Name="textBox5" Text="" VerticalAlignment="Top" Width="460" KeyDown="antwort_KeyDown" />
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,93,0,0" Name="textBlock14" Text="Soundname" VerticalAlignment="Top" />
                    <TextBox Height="72" HorizontalAlignment="Left" Margin="0,113,0,0" Name="textBox6" Text="" VerticalAlignment="Top" Width="460" KeyDown="antwort_KeyDown" />
                    <CheckBox Content="Heute noch" Height="72" HorizontalAlignment="Left" Margin="12,192,0,0" Name="checkBox3" VerticalAlignment="Top" />
                </Grid>
            </controls:PivotItem>
            <controls:PivotItem Header="Spezial">
                <Grid Grid.Row="1" Height="475" HorizontalAlignment="Left" Margin="0,-30,0,0" Name="grid4" VerticalAlignment="Top" Width="458">
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,0,0,0" Name="textBlock15" Text="Romaji" VerticalAlignment="Top" />
                    <TextBox Height="72" HorizontalAlignment="Left" Margin="0,20,0,0" Name="textBox7" Text="" VerticalAlignment="Top" Width="460" KeyDown="antwort_KeyDown" />
                    <CheckBox Content="JapZ. in Frage" Height="72" HorizontalAlignment="Left" Margin="10,100,0,0" Name="checkBox1" VerticalAlignment="Top" />
                    <CheckBox Content="JapZ. in Antwort" Height="72" HorizontalAlignment="Left" Margin="10,182,0,0" Name="checkBox2" VerticalAlignment="Top" />
                </Grid>
            </controls:PivotItem>
        </controls:Pivot>
        <Grid Grid.Row="1" Height="135" HorizontalAlignment="Left" Margin="2,565,0,0" Name="hinzufuegenGrit" VerticalAlignment="Top" Width="480" Visibility="Collapsed">
            <Button Content="Hinzufügen" Height="72" HorizontalAlignment="Right" Margin="0,64,-1,0" Name="button13" VerticalAlignment="Top" Width="242" Click="hinzufuegen_Click" />
            <Button Content="Fertig" Height="72" HorizontalAlignment="Left" Margin="3,64,0,0" Name="button14" VerticalAlignment="Top" Width="230" Click="hinzufuegen_Click" />
            <TextBlock Height="58" HorizontalAlignment="Left" Margin="10,0,0,0" Name="textBlock20" Text="" VerticalAlignment="Top" Width="449" />
        </Grid>
        <ListBoxItem Content="ListBoxItem" Grid.Row="1" HorizontalAlignment="Left" Margin="-117,355,0,0" Name="listBoxItem1" VerticalAlignment="Top" />
        <Grid Grid.Row="1" Height="476" HorizontalAlignment="Left" Margin="0,63,0,0" Name="grid1" VerticalAlignment="Top" Width="480" Visibility="Collapsed">
            <TextBlock Height="29" HorizontalAlignment="Center" Name="textBlock5" Text="Wollen Sie die Frage Wirklich Löschen?" VerticalAlignment="Top" Width="349" />
            <Button Content="Ja" Height="72" HorizontalAlignment="Left" Margin="0,35,0,0" Name="button19" VerticalAlignment="Top" Width="81" Click="button19_Click" />
            <Button Content="Nein" Height="72" HorizontalAlignment="Left" Margin="347,35,0,0" Name="button20" VerticalAlignment="Top" Width="133" Click="button20_Click" />
            <CheckBox Content="Nicht mehr nachfragen Löschen" Height="72" HorizontalAlignment="Left" Margin="0,240,0,0" Name="checkBox4" VerticalAlignment="Top" Width="480" />
        </Grid>
        <ScrollViewer Height="1500" HorizontalAlignment="Left" Margin="2,1,0,0" Name="scrollViewer1" VerticalAlignment="Top" Width="480" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Visibility="Collapsed">
           <Grid Height="1500" HorizontalAlignment="Left" Margin="0,12,0,0" Name="hilfGrid1" VerticalAlignment="Top" Width="481" Background="Black" Visibility="Collapsed" Grid.RowSpan="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="*" />
                    
                </Grid.ColumnDefinitions>
                <TextBlock Height="1500" HorizontalAlignment="Left" Name="HifetextAbfrage" Text="" VerticalAlignment="Top" Width="480" Visibility="Visible" />
           </Grid>
        </ScrollViewer>
        <Button Content="?" Grid.RowSpan="2" Height="72" HorizontalAlignment="Left" Margin="403,8,0,0" Name="button21" VerticalAlignment="Top" Width="77" Click="AbfrageHilfe_Click" Visibility="Collapsed" />
    </Grid>
 
    <!--Beispielcode für die Verwendung von ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Schaltfläche 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Schaltfläche 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Menüelement 1"/>
                <shell:ApplicationBarMenuItem Text="Menüelement 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>